﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZLCMS.Business.Util;
using ZLCMS.Business;
using ZLCMS.Business.DwzFrame;

namespace ZLCMS.Web.SystemManage.Basics.Param.Memory
{
    public partial class Fresh : System.Web.UI.Page
    {
        protected string _groupcode;
        
        protected FrameHelper _framePage;

        protected void Page_Load(object sender, EventArgs e)
        {
            //初始化全局变量值
            _groupcode = Request["groupcode"] == null ? "" : Request["groupcode"];

            _framePage = new FrameHelper(this);

            try
            {
                if (_groupcode != "")
                {
                    ParamKit.GetInstance().Fresh(_groupcode);

                }
                else
                {
                    throw new Exception("参数错误");
                }
            }
            catch (System.Exception ex)
            {
                _framePage.Alert(new ReturnCode() { statusCode = 300, message = "操作失败-" + ex.InnerException.Message });
            }

            _framePage.Alert(new ReturnCode() { statusCode = 200, message = "操作成功!" });
        }
    }
}
